﻿<UserControl x:Class="OpenLightGroup.Visualizers.Controls.OscilloscopeVisualizer"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             Width="600"
             Height="400">
    <UserControl.Resources>
        <Storyboard x:Name="Storyboard1">
            <PointAnimationUsingKeyFrames BeginTime="00:00:00"
                                          Storyboard.TargetName="Scope"
                                          Storyboard.TargetProperty="(Path.Data).(PathGeometry.Figures)[0].(PathFigure.Segments)[0].(LineSegment.Point)">
                <EasingPointKeyFrame KeyTime="00:00:00.1000000"
                                     Value="46.9375686645508,0.5" />
            </PointAnimationUsingKeyFrames>
            <PointAnimationUsingKeyFrames BeginTime="00:00:00"
                                          Storyboard.TargetName="Scope"
                                          Storyboard.TargetProperty="(Path.Data).(PathGeometry.Figures)[0].(PathFigure.Segments)[1].(LineSegment.Point)">
                <EasingPointKeyFrame KeyTime="00:00:00.1000000"
                                     Value="95,12.734375" />
            </PointAnimationUsingKeyFrames>
            <PointAnimationUsingKeyFrames BeginTime="00:00:00"
                                          Storyboard.TargetName="Scope"
                                          Storyboard.TargetProperty="(Path.Data).(PathGeometry.Figures)[0].(PathFigure.Segments)[2].(LineSegment.Point)">
                <EasingPointKeyFrame KeyTime="00:00:00.1000000"
                                     Value="145,66" />
            </PointAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00"
                                           Storyboard.TargetName="Scope"
                                           Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.SpreadMethod)">
                <DiscreteObjectKeyFrame KeyTime="00:00:00.1000000">
                    <DiscreteObjectKeyFrame.Value>
                        <GradientSpreadMethod>Pad</GradientSpreadMethod>
                    </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
                <DiscreteObjectKeyFrame KeyTime="00:00:00.2000000">
                    <DiscreteObjectKeyFrame.Value>
                        <GradientSpreadMethod>Pad</GradientSpreadMethod>
                    </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
            </ObjectAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                           Storyboard.TargetName="Scope"
                                           Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Offset)">
                <EasingDoubleKeyFrame KeyTime="00:00:00.1000000"
                                      Value="0" />
                <EasingDoubleKeyFrame KeyTime="00:00:00.2000000"
                                      Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                           Storyboard.TargetName="Scope"
                                           Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Offset)">
                <EasingDoubleKeyFrame KeyTime="00:00:00.1000000"
                                      Value="1" />
                <EasingDoubleKeyFrame KeyTime="00:00:00.2000000"
                                      Value="0.087" />
            </DoubleAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00"
                                          Storyboard.TargetName="Scope"
                                          Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
                <EasingColorKeyFrame KeyTime="00:00:00.1000000"
                                     Value="Black" />
                <EasingColorKeyFrame KeyTime="00:00:00.2000000"
                                     Value="#CFD8D8D8" />
            </ColorAnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources>
    <Canvas x:Name="LayoutRoot">

        <Path x:Name="Scope"
              Stroke="White"
              Height="400"
              Width="600"
              UseLayoutRounding="True"
              Canvas.Left="0"
              Canvas.Top="200"
              StrokeStartLineCap="Round"
              StrokeEndLineCap="Round"
              StrokeLineJoin="Round">
            
			<Path.Fill>
        		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        			<GradientStop Color="#CFD8D8D8" Offset="0"/>
        			<GradientStop Color="#FFDE0E0E" Offset="0.319"/>
        			<GradientStop Color="#FFBE0E0E" Offset="0.589"/>
        			<GradientStop Color="#FFA00E0E" Offset="0.863"/>
        		</LinearGradientBrush>
        	</Path.Fill>
			

            <Path.Data>
                <PathGeometry FillRule="EvenOdd">
                    <PathFigure IsClosed="True"
                                IsFilled="True"
                                StartPoint="0,0"
                                x:Name="Figure">
                        <LineSegment Point="35,0" />
                        <LineSegment Point="70,0" />
                        <LineSegment Point="105,0" />
                        <LineSegment Point="135,0" />
                        <LineSegment Point="170,0" />
                        <LineSegment Point="205,0" />
                        <LineSegment Point="235,0" />
                        <LineSegment Point="270,0" />
                        <LineSegment Point="305,0" />
                        <LineSegment Point="335,0" />
                        <LineSegment Point="370,0" />
                        <LineSegment Point="405,0" />
                        <LineSegment Point="435,0" />
                        <LineSegment Point="470,0" />
                        <LineSegment Point="505,0" />
                        <LineSegment Point="535,0" />
                        <LineSegment Point="570,0" />
                        <LineSegment Point="600,0" />
                    </PathFigure>
                </PathGeometry>
            </Path.Data>
        </Path>

    </Canvas>
</UserControl>
